// 返工出库 接口

import request from '@/utils/request'

//返工出库 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/pickingComplete/list',
    method: 'GET',
    params
  })
}

//返工出库明细列表
export function GetDailtListAPI(params) {
  return request({
    url: '/storage/pickingCompleteDetail/list',
    method: 'GET',
    params
  })
}

// 返工出库 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/pickingComplete/addPickingComplete',
    method: 'POST',
    data
  })
}

// 返工出库 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/pickingComplete/view/' + data,
    method: 'GET'
  })
}

// 返工出库 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/pickingComplete/closeComplete',
    method: 'POST',
    data
  })
}

// 删除 返工出库
export function DelDataAPI(data) {
  return request({
    url: '/storage/pickingComplete/deleteComplete/' + data,
    method: 'DELETE'
  })
}

// 返工出库 修改保存
export function EditDataAPI(data) {
  return request({
    url: '/storage/pickingComplete/updateComplete',
    method: 'POST',
    data
  })
}

// 查询当前制令单下状态为返工的产品号码
export function GetStockInfoMoAPI(params) {
  return request({
    url: '/storage/wmsStock/getStockInfoMo',
    method: 'GET',
    params
  })
}

// 水刺分切制令单列表
export function getMoOrderListAPI(params) {
  return request({
    url: '/production/spunlaceOrder/getMoOrderList',
    method: 'GET',
    params
  })
}
